<!DOCTYPE html>
<html>
<head><title>{%$TR->meccano->webtitle%}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css" href="/tpa/admin.css">
   <script type="text/javascript" src="/lib/js/jquery.js"></script>
   <script type="text/javascript" src="/lib/js/meccano.js"></script>
<script type="text/javascript">
var timer;
function toggleN()
{
   $('#buttons').slideToggle('normal');
   timer = window.setTimeout(function(){$('#buttons').slideUp('normal');}, 10000);
}
$(document).ready(function(){
   $('#buttons a').bind('click',function(){
      $('#buttons').slideUp('normal');
      clearTimeout(timer);
   });
   var pgsz = getPageSize();
   $('#c_frame').css('height',(pgsz[1]-20)+'px');
});
</script>
<style type="text/css">
   #top_navigation {float:left;border-bottom:1px solid #999;padding:0;width:100%;background-color:#FFF;paddign:0;}
   #menu {display:block;float:left;height:15px;padding:3px 10px;margin:0;color:#FFF;background:url(/tpa/img/tabsBg.gif) repeat-x left top; }
   #menu:hover {color:#48A000;background:url(/tpa/img/tabsBg.gif) repeat-x left bottom;text-decoration:none;}

   #buttons {display:none;margin:0 0 0 10px;padding:0;list-style-type:none;}
   #buttons li {display:inline-block;margin:0 1px;}
   #buttons li.space {display:inline-block;width:10px;}
   #buttons li a {display:block;height:15px;padding:35px 5px 10px;border:1px solid #CCC;font-size:110%;color:#888;background-color:#FFF;}
   #buttons li a:hover {color:#555;text-decoration:none;background-color:#EEE;}
   /*
   #buttons li a {display:block;float:left;}
   #buttons li a:hover {}
   */

   #b_content {background:url(/tpa/img/32/editdoc.png) no-repeat 50% top;}
   #b_user {background:url(/tpa/img/32/user.png) no-repeat 50% top;}
   #b_users {background:url(/tpa/img/32/users.png) no-repeat 50% top;}
   #b_develope {background:url(/tpa/img/32/gear.png) no-repeat 50% top;}
   #b_dispatch {background:url(/tpa/img/32/sendmail.png) no-repeat 50% top;}
   #b_polls {background:url(/tpa/img/32/polls.png) no-repeat 50% top;}
   #b_banners {background:url(/tpa/img/32/promotion.png) no-repeat 50% top;}
   #b_logout {background:url(/tpa/img/32/logout.png) no-repeat 50% top;}
</style>
</head>
<body>
<div id="top_navigation">
   <a href="javascript:toggleN();" id="menu">{%$TR->meccano->manage%}</a>
   <div class="fl-left" style="min-width:1100px;">
      <ul id="buttons">
         <li><a href='/admin/index.php?logout=1' target='_self' onclick="if(confirm('{%$TR->meccano->confirm_onexit%}') == false) return false; " id="b_logout">{%$TR->meccano->adminexit%}</a></li>
         <li class="space">&nbsp;</li>
         <li><a href="/admin/content.php" target="workspace" id="b_content">{%$TR->meccano->editsitecontent%}</a></li>
         <li><a href="/admin/users.php" target="workspace" id="{%if $authorizedUser->hasRole('ADMIN')%}b_users">{%$TR->meccano->users%}{%else%}b_user">{%$TR->meccano->user%}{%/if%}</a></li>
         {%if $CONFIG->dispatch('enabled') && ($authorizedUser->hasRole('ADMIN') || $authorizedUser->hasRole('EMAIL'))%}
         <li><a href="/admin/dispatch.php" target="workspace" id="b_dispatch">{%$TR->meccano->dispatches%}</a></li>
         {%/if%}
         {%if $CONFIG->polls('enabled') && $authorizedUser->hasRole('ADMIN')%}
         <li><a href="/admin/polls.php" target="workspace" id="b_polls">{%$TR->meccano->polls%}</a></li>
         {%/if%}
         {%if $_system.modules.banners eq 1%}
         <li><a href="" id="b_banners">{%$TR->meccano->banners%}</a></li>
         {%/if%}
         {%if $authorizedUser->hasRole('ADMIN')%}
         <li><a href="/admin/develope.php" target="workspace" id="b_develope">{%$TR->meccano->develope%}</a></li>
         {%/if%}
      </ul>

      <div style="margin:3px 10px;">
      <div class="fl-left notice" style="background-color:#FFF;">
      {%$TR->meccano->authorized_as%}: [ <b class="warn">{%$authorizedUser->login%}</b> ];
      {%$TR->meccano->previous_auth_was%}: <b>{%$authorizedUser->lastloged|date_format:'%d.%m.%Y'%}</b>
      </div>
      <div class="fl-right notice">
         <a href="http://artinet.com.ua/" class="notice" target="_blank">Artinet MECCANO</a> v.{%$CONFIG->version%}
      </div>
      </div>
   </div>
</div>
<div class="clear"></div>

<div style="position:absolute;left:0;top:20px;z-index:-1; width:100%; height:90%;" id="c_frame">
<iframe name="workspace" src="/admin/content.php" width="100%" height="100%" align="left" frameborder="no"></iframe>
</div>

</body>
</html>